home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19950329-19950528
/
000009_news@columbia.edu_Wed Mar 29 18:36:22 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-07-31
|
3KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA29147
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Thu, 30 Mar 1995 23:05:59 -0500
Received: by apakabar.cc.columbia.edu id AA23339
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Thu, 30 Mar 1995 23:05:57 -0500
Newsgroups: comp.protocols.kermit.misc
Path: news.columbia.edu!news.cs.columbia.edu!news.nyc.pipeline.com!news.intercon.com!panix!news.mathworks.com!news.duke.edu!news-feed-1.peachnet.edu!gatech!howland.reston.ans.net!spool.mu.edu!torn!nott!cunews!boris!rmallett
From: rmallett@boris.ccs.carleton.ca (Rick Mallett)
Subject: How to disable C-Kermit CLI
Message-Id: <D67t0M.A49@cunews.carleton.ca>
Sender: news@cunews.carleton.ca (News Administrator)
Organization: Carleton University
X-Newsreader: TIN [version 1.2 PL0]
Date: Wed, 29 Mar 1995 18:36:22 GMT
Lines: 53
Apparently-To: kermit.misc@watsun.cc.columbia.edu
I'm using kermit for file upload/download in conjunction with a Unix
restricted shell text-based menu interface that should prevent all
direct access to Unix shell commands. Files are uploaded/downloaded
by way of expect scripts where the invokation is as follows:
set s [system $kermit $flag -y /vol/local/chat/kermrc -C "\"pcsend $source $target, quit\""]
and
set s [system $kermit $flag -y /vol/local/chat/kermrc -C 'pcget $tempname $target, quit']
This seems to work OK except that I found the other day that users can escape
to the kermit prompt by typing several CTRL-C's during the upload operation.
At that point they can browse rthe system and perform other operations that
I do not want them to be able to do. Fortunately, we had taken other measures
to prevent users from spawning a shell, so overall system security has not yet
been compromised.
The question is this. How do I prevent the users from reaching the `C-Kermit>'
prompt. I tried compiling with KFLAGS=-DNOICP, but got the following
gcc -o wermit ckcmai.o ckutio.o \
ckufio.o ckcfns.o ckcfn2.o ckcfn3.o \
ckuxla.o ckcpro.o ckucmd.o ckuus2.o \
ckuus3.o ckuus4.o ckuus5.o ckuus6.o \
ckuus7.o ckuusx.o ckuusy.o ckuusr.o \
ckucon.o ckudia.o ckuscr.o ckcnet.o -lcurses -ltermcap
ld: Undefined symbol
_gettcs
collect: ld returned 2 exit status
*** Error code 1
make: Fatal error: Command failed for target `wermit'
Current working directory /vol/local/kermit-5A-190/src
*** Error code 1
make: Fatal error: Command failed for target `sunos41gcc'
I did a `make clean' ahead of time so I'm guessing that no-one in the
Unix world has bothered trying this option. Even if I solve this problem,
I kind of suspect that it won't work as expected since the `-C whatever'
command probably needs the command line interpreter. Is there another
compilation flag that will give me the result I want.
BTW: I'm running kermit-5A-190 under SunOS4.1.3 and using gcc-2-4-5 for
compilartion.
----------------------------------------------------------------------
Rick Mallett
Carleton University
Email address: rmallett@ccs.carleton.ca
----------------------------------------------------------------------